import unittest

from config import BASE_LJ
from htmltestreport import HTMLTestReport
import time


if __name__ == '__main__':

    sutie = unittest.defaultTestLoader.discover(BASE_LJ + '/scripts','test*')
    runner = unittest.TextTestRunner()
    runner.run(sutie)

    sutie = unittest.defaultTestLoader.discover(BASE_LJ + '/scripts','test*')
    runner = HTMLTestReport(BASE_LJ + '/report/report.html','投资用例',time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(time.time())))
    runner.run(sutie)
